<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

$items = $params->get( 'items', 1 );
$db =& JFactory::getDBO();
$query = "SELECT * FROM #__bpnews WHERE published = '1' ORDER BY created DESC";
$db->setQuery( $query, 0, $items );
$rows = $db->loadObjectList();

echo '<dl>';

foreach( $rows as $row )
{
	$words = explode( ' ', $row->text );
	$words = implode( ' ', array_slice( $words, 0, 10 ) );
	echo '<dt><a href = "'. JRoute::_('index.php?option=com_bpnews&view=news&id='. $row->id ).'">'. 
			$row->title . '</a></dt>';
	echo '<dd>' . $words . '...</dd><br />';
}

echo '</dl>';
?>